home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Games / JKII_Demo.sit / Jedi Knight II Demo / demo / assets0.pk3 / ui / ingameload.menu < prev    next >
Encoding:
Text File  |  2002-03-22  |  13.8 KB  |  686 lines

  1. // INGAME MAIN MENU
  2. {
  3.     menuDef 
  4.     {
  5.         name                    "ingameloadMenu"
  6.         fullScreen                1                                // MENU_TRUE                
  7.         rect                    0 0 640 480                        // Size and position of the menu
  8.         visible                    1                                // Visible on open
  9.         focusColor                1 1 1 1                            // Focus color for text and items
  10.         appearanceIncrement        10                                // In miliseconds
  11.         descX                    375
  12.         descY                    425
  13.         descScale                .8
  14.         descColor                .235 .882 .847 1                    // Focus color for text and items
  15.         descAlignment            ITEM_ALIGN_CENTER        
  16.         disablecolor            .5 .5 .5 1
  17.  
  18.         onOpen 
  19.         {
  20.             uiScript            ReadSaveDirectory
  21.         }
  22.  
  23.         onESC 
  24.         { 
  25.                 uiScript        closeingame            // Close menu                
  26.         }
  27.                                                 
  28.         //----------------------------------------------------------------------------------------------
  29.         //
  30.         //    MENU BACKGROUND
  31.         //
  32.         //----------------------------------------------------------------------------------------------
  33.         itemDef 
  34.         {
  35.             name                frame_pic
  36.             group                none
  37.             style                WINDOW_STYLE_SHADER
  38.             rect                0 0 640 480
  39.             background            "gfx/menus/menu1"                    // Frame
  40.             forecolor            1 1 1 1
  41.             visible            1
  42.             decoration
  43.         }
  44.  
  45.         // The saber glow on the left
  46.         itemDef 
  47.         {
  48.             name                saberglow
  49.             group                none
  50.             style                WINDOW_STYLE_SHADER
  51.             rect                30 0 90 480
  52.             background            "gfx/menus/menu3"                    // Frame
  53.             forecolor            0.8 0.8 0.8 1
  54.             visible            1
  55.             decoration
  56.         }
  57.  
  58.  
  59.         // The starwars logo on the top
  60.         itemDef 
  61.         {
  62.             name                starwars
  63.             group                none
  64.             style                WINDOW_STYLE_SHADER
  65.             rect                143 12 470 93
  66.             background            "gfx/menus/menu4"                    // Frame
  67.             forecolor            1 1 1 1
  68.             visible            1
  69.             decoration
  70.         }
  71.  
  72.         // The saber halo on the left
  73.         itemDef 
  74.         {
  75.             name                saberhalo
  76.             group                none
  77.             style                WINDOW_STYLE_SHADER
  78.             rect                -425 -185 1000 1000
  79.             background            "gfx/menus/menu2"                    // Frame
  80.             forecolor            0.5 0.5 0.5 1
  81.             visible            1
  82.             decoration
  83.         }
  84.  
  85.         itemDef
  86.         {
  87.             name                logomodel
  88.             group                none
  89.             type                 ITEM_TYPE_MODEL
  90.             rect                -123 48 400 400
  91.             model_angle            90
  92.             model_rotation        3.5
  93.             asset_model            "models/map_objects/bespin/jk2logo.md3"
  94. //            model_fovx            37
  95. //            model_fovy            34
  96. //            model_origin        100 100 100
  97.             visible            1
  98.             decoration
  99.         }
  100.  
  101.         // The saber halo on the left
  102.         itemDef 
  103.         {
  104.             name                saberhalo2
  105.             group                none
  106.             style                WINDOW_STYLE_SHADER
  107.             rect                -225 15 600 600
  108.             background            "gfx/menus/menu2b"                    // Frame
  109.             forecolor            0.25 0.25 0.25 1
  110.             visible            1
  111.             decoration
  112.         }
  113.  
  114.         //----------------------------------------------------------------------------------------------
  115.         //
  116.         //    TOP MENU BUTTONS
  117.         //
  118.         //----------------------------------------------------------------------------------------------
  119.  
  120.  
  121.         // Big button "SAVE"
  122.         itemDef 
  123.         {
  124.             name                savegamebutton_glow
  125.             group                mods
  126.             style                WINDOW_STYLE_SHADER
  127.             rect                115 115 130 24
  128.             background            "gfx/menus/menu_buttonback"            // Frame around button
  129.             forecolor            1 1 1 1
  130.             visible            0
  131.             decoration
  132.         }
  133.  
  134.         itemDef 
  135.         {
  136.             name                savegamebutton
  137.             group                toprow
  138.             text                @MENUS1_SAVE
  139.             descText            @MENUS1_SAVE_CURRENT_GAME
  140.             style                WINDOW_STYLE_EMPTY
  141.             type                ITEM_TYPE_BUTTON
  142.             rect                115 115 130 24
  143.             textaligny            0
  144.             font                3
  145.             textscale            0.9
  146.             textalign            ITEM_ALIGN_CENTER
  147.             textstyle            3
  148.             textalignx            65
  149.             forecolor            0.65 0.65 1 1
  150.             visible                1
  151.  
  152.             mouseEnter 
  153.             { 
  154.                 show            savegamebutton_glow 
  155.             }
  156.             mouseExit 
  157.             { 
  158.                 hide            savegamebutton_glow 
  159.             }            
  160.             action 
  161.             { 
  162.                 play            "sound/interface/button1.wav" ; 
  163.                 close            all ; 
  164.                 open            ingamesaveMenu 
  165.             }
  166.         }
  167.  
  168.  
  169.         // Big button "LOAD"
  170.         itemDef 
  171.         {
  172.             name                loadgamebutton_glow
  173.             group                mods
  174.             style                WINDOW_STYLE_SHADER
  175.             rect                245 115 130 24
  176.             background            "gfx/menus/menu_buttonback"            // Frame around button
  177.             forecolor            1 1 1 1
  178.             visible                0
  179.             decoration
  180.         }
  181.  
  182.         itemDef 
  183.         {
  184.             name                loadgamebutton
  185.             group                toprow
  186.             text                @MENUS1_LOAD
  187.             descText            @MENUS1_LOAD_A_SAVED_GAME
  188.             rect                245 115 130 24
  189.             style                WINDOW_STYLE_EMPTY
  190.             type                ITEM_TYPE_BUTTON
  191.             textstyle            3
  192.             font                3
  193.             textscale            0.9
  194.             textaligny            0
  195.             textalign            ITEM_ALIGN_CENTER
  196.             textalignx            65
  197.             forecolor            1 1 1 1
  198.             visible            1
  199.             decoration
  200.  
  201.             mouseEnter 
  202.             { 
  203.                 show            loadgamebutton_glow 
  204.             }
  205.             mouseExit 
  206.             { 
  207.                 hide            loadgamebutton_glow 
  208.             }            
  209.         }
  210.  
  211.  
  212.         // Big button "CONTROLS"
  213.         itemDef 
  214.         {
  215.             name                controlsbutton_glow
  216.             group                mods
  217.             style                WINDOW_STYLE_SHADER
  218.             rect                375 115 130 24
  219.             background            "gfx/menus/menu_buttonback"            // Frame around button
  220.             forecolor            1 1 1 1
  221.             visible            0
  222.             decoration
  223.         }
  224.  
  225.         itemDef {
  226.             name                controlsbutton
  227.             group                toprow
  228.             text                @MENUS0_CONTROLS2
  229.             descText            @MENUS0_CONFIGURE_GAME_CONTROLS
  230.             type                ITEM_TYPE_BUTTON
  231.             style                WINDOW_STYLE_EMPTY
  232.             rect                375 115 130 24
  233.             font                3
  234.             textscale            0.9
  235.             textaligny            0
  236.             textalign            ITEM_ALIGN_CENTER
  237.             textstyle            3
  238.             textalignx            65
  239.             backcolor            0 0 0 0
  240.             forecolor            0.65 0.65 1 1
  241.             visible                1
  242.              
  243.             mouseEnter 
  244.             { 
  245.                 show            controlsbutton_glow 
  246.             }
  247.             mouseExit 
  248.             { 
  249.                 hide            controlsbutton_glow 
  250.             }            
  251.             action 
  252.             {
  253.                 play            "sound/interface/button1.wav" ; 
  254.                 close            all ; 
  255.                 open            ingameControlsMenu ; 
  256.             }
  257.         }
  258.  
  259.         // Big button "SETUP"
  260.         itemDef 
  261.         {
  262.             name                setupbutton_glow
  263.             group                mods
  264.             style                WINDOW_STYLE_SHADER
  265.             rect                505 115 130 24
  266.             background            "gfx/menus/menu_buttonback"            // Frame around button
  267.             forecolor            1 1 1 1
  268.             visible            0
  269.             decoration
  270.         }
  271.  
  272.         itemDef {
  273.             name                setupbutton
  274.             group                toprow
  275.             text                @MENUS0_SETUP
  276.             descText            @MENUS0_CONFIGURE_GAME_SETTINGS
  277.             type                ITEM_TYPE_BUTTON
  278.             style                WINDOW_STYLE_EMPTY
  279.             rect                505 115 130 24
  280.             font                3
  281.             textscale            0.9
  282.             textaligny            0
  283.             textalign            ITEM_ALIGN_CENTER
  284.             textstyle            3
  285.             textalignx            65
  286.             backcolor            0 0 0 0
  287.             forecolor            0.65 0.65 1 1
  288.             visible                1
  289.              
  290.             mouseEnter 
  291.             { 
  292.                 show            setupbutton_glow 
  293.             }
  294.             mouseExit 
  295.             { 
  296.                 hide            setupbutton_glow 
  297.             }            
  298.             action 
  299.             {
  300.                 play            "sound/interface/button1.wav" ; 
  301.                 close            all ; 
  302.                 open            ingameSetupMenu ; 
  303.             }
  304.         }
  305.  
  306.         itemDef 
  307.         {
  308.             name                header_line
  309.             group                toprow
  310.             style                WINDOW_STYLE_SHADER
  311.             rect                125 136 500 4
  312.             background            "gfx/menus/menu_line"                    // Frame
  313.             forecolor            1 1 1 1
  314.             visible                1
  315.             decoration
  316.         }
  317.  
  318.         //----------------------------------------------------------------------------------------------
  319.         //
  320.         //    OTHER MAIN MENU BUTTONS
  321.         //
  322.         //----------------------------------------------------------------------------------------------
  323.         // EXIT button in lower left corner
  324.         itemDef 
  325.         {
  326.             name                exitgamebutton_glow
  327.             group                mods
  328.             style                WINDOW_STYLE_SHADER
  329.             rect                115 444 130 24 
  330.             background            "gfx/menus/menu_buttonback"            // Frame around button
  331.             forecolor            1 1 1 1
  332.             visible            0
  333.             decoration
  334.         }
  335.  
  336.         itemDef 
  337.         {
  338.             name                exitgamebutton
  339.             group                othermain
  340.             text                @MENUS0_EXIT
  341.             descText            @MENUS1_JEDI_KNIGHT_II
  342.             type                ITEM_TYPE_BUTTON
  343.             style                WINDOW_STYLE_EMPTY
  344.             rect                115 444 130 24 
  345.             font                3
  346.             textscale            1
  347.             textalign            ITEM_ALIGN_CENTER
  348.             textstyle            3
  349.             textalignx            65
  350.             textaligny            -1
  351.             forecolor            0.65 0.65 1 1
  352.             visible            1
  353.  
  354.             mouseEnter 
  355.             { 
  356.                 show            exitgamebutton_glow 
  357.             }
  358.             mouseExit 
  359.             { 
  360.                 hide            exitgamebutton_glow 
  361.             }            
  362.             action 
  363.             { 
  364.                 play            "sound/interface/button1.wav" ; 
  365.                 close            all ; 
  366.                 open            ingamequitMenu 
  367.             }
  368.         }
  369.  
  370.         // RESUME button in the lower right corner
  371.         itemDef 
  372.         {
  373.             name                resumebutton_glow
  374.             group                mods
  375.             style                WINDOW_STYLE_SHADER
  376.             rect                495 444 130 24 
  377.             background            "gfx/menus/menu_buttonback"            // Frame around button
  378.             forecolor            1 1 1 1
  379.             visible                0
  380.             decoration
  381.         }
  382.  
  383.         itemDef 
  384.         {
  385.             name                resume
  386.             group                none
  387.             style                WINDOW_STYLE_EMPTY
  388.             type                ITEM_TYPE_BUTTON
  389.             rect                495 444 130 24 
  390.             text                @MENUS1_RESUME
  391.             descText            @MENUS1_RESUME_CURRENT_GAME
  392.             font                3
  393.             textscale            1
  394.             textalign            ITEM_ALIGN_CENTER
  395.             textstyle            3
  396.             textalignx            65
  397.             textaligny            -1
  398.             forecolor            0.65 0.65 1 1
  399.             visible                1
  400.             mouseEnter 
  401.             { 
  402.                 show            resumebutton_glow 
  403.             }
  404.             mouseExit 
  405.             { 
  406.                 hide            resumebutton_glow 
  407.             }            
  408.             action 
  409.             { 
  410.                 play            "sound/interface/button1.wav" ; 
  411.                 uiScript        closeingame            // Close menu                
  412.             }
  413.         }
  414.  
  415.         //----------------------------------------------------------------------------------------------
  416.         //
  417.         //   LOAD GAME MENU specific stuff
  418.         //
  419.         //----------------------------------------------------------------------------------------------
  420.         // Load Game title
  421.         itemDef 
  422.         {
  423.             name                loadgame_title
  424.             group                none
  425.             style                WINDOW_STYLE_SHADER
  426.             background            "gfx/menus/menu_blendbox"
  427.             text                @MENUS1_LOAD_GAME
  428.               rect                150 145 450 16
  429.             font                3
  430.             textscale            0.7
  431.             textalign            ITEM_ALIGN_CENTER        
  432.             textalignx            225
  433.             textaligny            -2
  434.             forecolor            1 1 1 1
  435.               visible            1 
  436.                   decoration 
  437.         }
  438.  
  439.  
  440.         itemDef 
  441.         {
  442.             name                loadgamedesc
  443.             group                loadgame
  444.             type                ITEM_TYPE_EDITFIELD
  445.             style                WINDOW_STYLE_EMPTY
  446.             flag                WINDOW_INACTIVE
  447.             text                @MENUS1_DESC
  448.             cvar                ui_gameDesc
  449.             maxChars            60
  450.               rect                150 165 450 16
  451.             textalign            ITEM_ALIGN_LEFT        
  452.             textalignx            0
  453.             textaligny            -4 
  454.             font                2
  455.             textscale            .8
  456.             outlinecolor        1 .5 .5 .5
  457.             backcolor            0 0 0 0
  458.             forecolor            1 1 1 1
  459.             border                0
  460.             bordercolor            0 0 0 0
  461.             visible                1 
  462.         }
  463.         
  464.         itemDef 
  465.         {
  466.             name                loadgamelist
  467.             group                loadscreen
  468.             rect                145 190 285 230
  469.             type                ITEM_TYPE_LISTBOX
  470.             style                WINDOW_STYLE_FILLED
  471.             elementwidth        120
  472.             elementheight        16
  473.             font                2
  474.             textaligny            2 
  475.             textscale            0.7
  476.             border            1
  477.             bordersize            1
  478.             bordercolor            .5 .5 .5 .5
  479.             forecolor            0.65 0.65 1 1
  480.             backcolor            0 0 .5 .25
  481.             outlinecolor        .5 .5 .5 .5
  482.             elementtype            LISTBOX_TEXT
  483.             feeder            FEEDER_SAVEGAMES
  484.             notselectable
  485.             visible            1
  486.             columns            2     2 35 150   155 25 100
  487.             mouseEnter 
  488.             { 
  489.                 setitemcolor    loadgamelist bordercolor .265 .824 .886 1
  490.             } 
  491.             mouseExit 
  492.             { 
  493.                 setitemcolor    loadgamelist bordercolor .5 .5 .5 .5
  494.             } 
  495.             doubleclick
  496.             {
  497.                 play            sound/interface/button1.wav
  498.                 uiScript        loadgame
  499.             }
  500.         }
  501.  
  502.         itemDef 
  503.         {
  504.             name                loadgamepic
  505.             group                loadscreen
  506.             style                WINDOW_STYLE_EMPTY    
  507.             ownerdraw            236                    //UI_ALLMAPS_SELECTION
  508.             font                2
  509.             textscale            .8
  510.             forecolor            1 1 1 1
  511.             rect                435 190 180 135
  512.             border                1
  513.             bordercolor            .265 .824 .886 .25
  514.             visible                1 
  515.         }
  516.  
  517.         // loadgame button
  518.         itemDef 
  519.         {
  520.             name                loadgameaction_glow
  521.             group                glow
  522.             style                WINDOW_STYLE_SHADER
  523.             rect                440 350 175 25 
  524.             background            "gfx/menus/menu_blendbox2"            // Frame around button
  525.             forecolor            1 1 1 1
  526.             visible            0
  527.             decoration
  528.         }
  529.  
  530.         itemDef 
  531.         {
  532.             name                loadgameaction
  533.             group                actionbutton
  534.             text                @MENUS1_LOAD_GAME
  535.             descText            @MENUS1_LOAD_CHOSEN_GAME
  536.             type                ITEM_TYPE_BUTTON
  537.             style                WINDOW_STYLE_EMPTY
  538.             rect                440 350 175 25 
  539.             font                3
  540.             textscale            0.8
  541.             textalignx            175
  542.             textaligny            1
  543.             textalign            ITEM_ALIGN_RIGHT
  544.             textstyle            3
  545.             forecolor            0.65 0.65 1 1
  546.             visible                1
  547.             cvarTest            ui_SelectionOK
  548.             enableCvar            { "1" }
  549.  
  550.             mouseEnter 
  551.             { 
  552.                 show            loadgameaction_glow
  553.             } 
  554.             mouseExit 
  555.             { 
  556.                 hide            loadgameaction_glow
  557.             } 
  558.             action 
  559.             { 
  560.                 play            sound/interface/button1.wav ;
  561.                 hide            glow ;
  562.                 uiScript        loadgame
  563.             }
  564.         }
  565.  
  566.         // deletegame button
  567.         itemDef 
  568.         {
  569.             name                deletegameaction_glow
  570.             group                glow
  571.             style                WINDOW_STYLE_SHADER
  572.             rect                440 375 175 25 
  573.             background            "gfx/menus/menu_blendbox2"            // Frame around button
  574.             forecolor            1 1 1 1
  575.             visible                0
  576.             decoration
  577.         }
  578.  
  579.         itemDef 
  580.         {
  581.             name                deletegamebutton
  582.             group                actionbutton
  583.             text                @MENUS1_DELETE_GAME
  584.             descText            @MENUS1_DELETE_CHOSEN_GAME
  585.             type                ITEM_TYPE_BUTTON
  586.             style                WINDOW_STYLE_EMPTY
  587.             rect                440 375 175 25 
  588.             font                3
  589.             textscale            0.8
  590.             textalignx            175
  591.             textaligny            1
  592.             textalign            ITEM_ALIGN_RIGHT
  593.             textstyle            3
  594.             forecolor            0.65 0.65 1 1
  595.             visible                1
  596.             cvarTest            ui_SelectionOK
  597.             enableCvar            { "1" }
  598.  
  599.             mouseEnter 
  600.             { 
  601.                 show            deletegameaction_glow
  602.             } 
  603.             mouseExit 
  604.             { 
  605.                 hide            deletegameaction_glow
  606.             } 
  607.             action
  608.             { 
  609.                 play            sound/interface/button1.wav ;
  610.                 hide            glow ;
  611.                 uiScript        deletegame
  612.             }
  613.         }
  614.         
  615.         // resumegame button
  616.         itemDef 
  617.         {
  618.             name                resumegameaction_glow
  619.             group                glow
  620.             style                WINDOW_STYLE_SHADER
  621.             rect                440 400 175 25 
  622.             background            "gfx/menus/menu_blendbox2"            // Frame around button
  623.             forecolor            1 1 1 1
  624.             visible                0
  625.             decoration
  626.         }
  627.  
  628.         itemDef 
  629.         {
  630.             name                resumeautobutton
  631.             group                actionbutton
  632.             text                @MENUS2_RESUME_MISSION
  633.             descText            @MENUS2_RESUME_LAST_MISSION_ENTERED
  634.             type                ITEM_TYPE_BUTTON
  635.             style                WINDOW_STYLE_EMPTY
  636.             rect                440 400 175 25 
  637.             font                3
  638.             textscale            0.8
  639.             textalignx            175
  640.             textaligny            1
  641.             textalign            ITEM_ALIGN_RIGHT
  642.             textstyle            3
  643.             forecolor            0.65 0.65 1 1
  644.             visible                1            // This button isn't used when not in game.
  645.             cvarTest            ui_ResumeOK
  646.             enableCvar            { "1" }
  647.  
  648.             mouseEnter 
  649.             { 
  650.                 show            resumegameaction_glow
  651.             } 
  652.             mouseExit 
  653.             { 
  654.                 hide            resumegameaction_glow
  655.             } 
  656.             action
  657.             { 
  658.                 play            "sound/interface/button1.wav" ; 
  659.                 hide            glow ;
  660.                 uiScript        loadAuto
  661.             }
  662.         }
  663.  
  664.  
  665.     }
  666. }
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.